﻿using BPMN.Domid.Model;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPMN.Domain.Entity
{
    /// <summary>
    /// 权限表
    /// </summary>
    [Table("Permission")]
    public class Permission: Audit
    {
        /// <summary>
        ///权限编号
        /// </summary>
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 权限名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 权限Url
        /// </summary>
        public string Url { get; set; }
        /// <summary>
        /// 上级Id
        /// </summary>
        public int Pid { get; set; }
    }
}
